import com.raylib.Camera3D;
import com.raylib.Vector3;
import static com.raylib.Raylib.*;

public class RayLibDemo {
	public static void main(@SuppressWarnings("unused") String[] args) {
		initWindow(800, 450, "Demo");
		setTargetFPS(60);
		var camera = new Camera3D(new Vector3(18, 16, 18),
				new Vector3(),
				new Vector3(0, 1, 0),
				90, CameraProjection.CAMERA_PERSPECTIVE);

		while (!windowShouldClose()) {
			// update
			updateCamera(camera, CameraMode.CAMERA_ORBITAL);
			// draw begin
			beginDrawing();
			// draw clear
			clearBackground(RAYWHITE);
			// draw 3d
			beginMode3D(camera);
			drawGrid(20, 1.0f);
			endMode3D();
			// draw 2d
			drawText("Hello world", 190, 200, 20, VIOLET);
			drawFPS(20, 20);
			// draw end
			endDrawing();
		}
		closeWindow();
	}
}
